package com.njwb.io;

/**
 * Description: 类的描述
 * Author: yuandeyin@itany.com
 * Date: 2025-08-06 10:01
 * Version: 1.0
 */
public class TestShape {
    public static void main(String[] args) {
//        Shape shape = new Cicle();
        Shape shape = new Rectangle();
        shape.draw();
        Shape borderShap = new BorderShapeDecorator(shape);
        borderShap.draw();

        Shape colorShap = new RedColorShapeDecorator(shape);
        colorShap.draw();

//        Shape borderAndColorShape = new BorderShapeDecorator(new RedColorShapeDecorator(shape));
        Shape borderAndColorShape = new RedColorShapeDecorator(new BorderShapeDecorator(shape));
        borderAndColorShape.draw();
    }
}
